#include "PCOMPGData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::FEM;

bool SG::DataStructure::FEM::operator== (const PCOMPGData::PLYData& val1, const PCOMPGData::PLYData& val2)
{
    FIELD_COMPARE (m_GPLYID)
    FIELD_COMPARE (m_MID)
    FIELD_COMPARE (m_THICK)
    FIELD_COMPARE (m_THETA)
    FIELD_COMPARE (m_SOUT)
    FIELD_COMPARE (m_MIDMTX)
    FIELD_COMPARE (m_VF)
    FIELD_COMPARE (m_VV)
    FIELD_COMPARE (m_CTEMP)
    FIELD_COMPARE (m_MOIST)
    FIELD_COMPARE_ARR (m_CRIT, 4)
    FIELD_COMPARE (m_NFTI)
    FIELD_COMPARE_ARR (m_FTI, 96)
    FIELD_COMPARE (m_GEFLG)
    return true;
}

bool SG::DataStructure::FEM::operator== (const PCOMPGData& val1, const PCOMPGData& val2)
{
    FIELD_COMPARE (m_id)
    FIELD_COMPARE (m_NPLIES)
    FIELD_COMPARE (m_Z0)
    FIELD_COMPARE (m_NSM)
    FIELD_COMPARE (m_SB)
    FIELD_COMPARE (m_FT)
    FIELD_COMPARE (m_TREF)
    FIELD_COMPARE (m_GE)
    FIELD_COMPARE_ARR (m_MICRO, 4)
    FIELD_COMPARE (m_domainId)
    return true;
}